try:
    x = 1/0
except ZeroDivisionError as e:
    print('除0错误:',e)

try:
    x = int("string")
except (ValueError,TypeError) as e:
    print('错误类型:',e)

try:
    #x = 1/0
    x = int("string")
except Exception as e:
    print('发生了一个异常:',e)